package operateur;

/**
 * Enum definition : StatusColis
 *
 * @author OpenORB Compiler
*/
public final class StatusColis implements org.omg.CORBA.portable.IDLEntity
{
    /**
     * Enum member initial value 
     */
    public static final int _initial = 0;

    /**
     * Enum member initial
     */
    public static final StatusColis initial = new StatusColis(_initial);

    /**
     * Enum member enAttente value 
     */
    public static final int _enAttente = 1;

    /**
     * Enum member enAttente
     */
    public static final StatusColis enAttente = new StatusColis(_enAttente);

    /**
     * Enum member enDepart value 
     */
    public static final int _enDepart = 2;

    /**
     * Enum member enDepart
     */
    public static final StatusColis enDepart = new StatusColis(_enDepart);

    /**
     * Enum member enTransitOnTime value 
     */
    public static final int _enTransitOnTime = 3;

    /**
     * Enum member enTransitOnTime
     */
    public static final StatusColis enTransitOnTime = new StatusColis(_enTransitOnTime);

    /**
     * Enum member enTransitDelayed value 
     */
    public static final int _enTransitDelayed = 4;

    /**
     * Enum member enTransitDelayed
     */
    public static final StatusColis enTransitDelayed = new StatusColis(_enTransitDelayed);

    /**
     * Enum member enArrivee value 
     */
    public static final int _enArrivee = 5;

    /**
     * Enum member enArrivee
     */
    public static final StatusColis enArrivee = new StatusColis(_enArrivee);

    /**
     * Internal member value 
     */
    private final int _StatusColis_value;

    /**
     * Private constructor
     * @param  the enum value for this new member
     */
    private StatusColis( final int value )
    {
        _StatusColis_value = value;
    }

    /**
     * Maintains singleton property for serialized enums.
     * Issue 4271: IDL/Java issue, Mapping for IDL enum.
     */
    public java.lang.Object readResolve() throws java.io.ObjectStreamException
    {
        return from_int( value() );
    }

    /**
     * Return the internal member value
     * @return the member value
     */
    public int value()
    {
        return _StatusColis_value;
    }

    /**
     * Return a enum member from its value
     * @param  an enum value
     * @return an enum member
         */
    public static StatusColis from_int(int value)
    {
        switch (value)
        {
        case 0 :
            return initial;
        case 1 :
            return enAttente;
        case 2 :
            return enDepart;
        case 3 :
            return enTransitOnTime;
        case 4 :
            return enTransitDelayed;
        case 5 :
            return enArrivee;
        }
        throw new org.omg.CORBA.BAD_OPERATION();
    }

    /**
     * Return a string representation
     * @return a string representation of the enumeration
     */
    public java.lang.String toString()
    {
        switch (_StatusColis_value)
        {
        case 0 :
            return "initial";
        case 1 :
            return "enAttente";
        case 2 :
            return "enDepart";
        case 3 :
            return "enTransitOnTime";
        case 4 :
            return "enTransitDelayed";
        case 5 :
            return "enArrivee";
        }
        throw new org.omg.CORBA.BAD_OPERATION();
    }

}
